import { defineComponent } from "vue";
export default defineComponent({
  emits: ["click"],
  setup(props, {slots,emit}) {
    return () => (
      <>
        默认插槽: {slots.default && slots.default()}
        <br />
        具名插槽: {slots.prefix && slots.prefix()}
        <br />
        作用域插槽:{slots.suffix && slots.suffix({ name: "suffix" })}
        <button onClick={() => {emit("click")}}>点我触发emit</button>
        <button onClick={() => {emit("handle")}}>点我触发emit</button>
      </>
    );
  },
});
